cmake_minimum_required(VERSION 3.10)
project(libspdlog VERSION 1.0)

include_directories(${PROJECT_SOURCE_DIR}/src)
file(GLOB SOURCES
    ${PROJECT_SOURCE_DIR}/src/*.h 
    ${PROJECT_SOURCE_DIR}/src/*.cpp
)

add_subdirectory(spdlog)

add_library(libspdlog STATIC ${SOURCES})
target_link_libraries(${PROJECT_NAME} PUBLIC spdlog::spdlog_header_only)

add_subdirectory(test)
